package com.sams.service;

import com.github.pagehelper.PageInfo;
import com.sams.entity.User;
import com.sams.util.SamResult;

public interface UserService {
	public SamResult login(String username,String password);

	public int add(User user);

	public PageInfo<User> listByPage(Integer currentPage,String usercode);

	public int delete(Integer uid);

	public boolean updatePwd(Integer id, String newpassword);
	
}
